using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace DTO
{
	/// <summary> 
	///Author: nnamthach@gmail.com 
	/// <summary>
	
    public class ProductsInfo
    {
		#region Local Variable
		public enum Field
		{
			ID,
			Code,
			Skue,
			IDCategory,
			Name,
			NameVN,
			ShortDecribes,
			LongDecribes,
			ShortDecribesVN,
			LongDecribesVN,
			Image,
			CountPreview,
			Icon,
			Status,
			OldPrice,
			NewPrice,
			Warranty,
			Promote,
			Weight,
			Dimension,
			TypeView,
			Quantity,
			WarrantyVN,
			PromoteVN,
			IDImage,
			ANAL_P0,
			ANAL_P1,
			ANAL_P2,
			ANAL_P3,
			ANAL_P4,
			ANAL_P5,
			ANAL_P6,
			ANAL_P7,
			ANAL_P8,
			ANAL_P9,
			BEN_H,
			BEN_S,
			BEN_C,
			BEN_R,
			BEN_F,
			Rate,
			Brand,
			Material,
			Age,
			Usage,
			Occasion
		}
		private Int64 _ID;
		private String _Code;
		private String _Skue;
		private Int32 _IDCategory;
		private String _Name;
		private String _NameVN;
		private String _ShortDecribes;
		private String _LongDecribes;
		private String _ShortDecribesVN;
		private String _LongDecribesVN;
		private String _Image;
		private Int64 _CountPreview;
		private String _Icon;
		private Int32 _Status;
		private Double _OldPrice;
		private Double _NewPrice;
		private String _Warranty;
		private String _Promote;
		private String _Weight;
		private String _Dimension;
		private String _TypeView;
		private Int32 _Quantity;
		private String _WarrantyVN;
		private String _PromoteVN;
		private Int32 _IDImage;
		private String _ANAL_P0;
		private String _ANAL_P1;
		private String _ANAL_P2;
		private String _ANAL_P3;
		private String _ANAL_P4;
		private String _ANAL_P5;
		private String _ANAL_P6;
		private String _ANAL_P7;
		private String _ANAL_P8;
		private String _ANAL_P9;
		private String _BEN_H;
		private String _BEN_S;
		private String _BEN_C;
		private String _BEN_R;
		private String _BEN_F;
		private String _Rate;
		private String _Brand;
		private String _Material;
		private String _Age;
		private String _Usage;
		private String _Occasion;
		
		public Int64 ID{	get{ return _ID;} set{_ID = value;} }
		public String Code{	get{ return _Code;} set{_Code = value;} }
		public String Skue{	get{ return _Skue;} set{_Skue = value;} }
		public Int32 IDCategory{	get{ return _IDCategory;} set{_IDCategory = value;} }
		public String Name{	get{ return _Name;} set{_Name = value;} }
		public String NameVN{	get{ return _NameVN;} set{_NameVN = value;} }
		public String ShortDecribes{	get{ return _ShortDecribes;} set{_ShortDecribes = value;} }
		public String LongDecribes{	get{ return _LongDecribes;} set{_LongDecribes = value;} }
		public String ShortDecribesVN{	get{ return _ShortDecribesVN;} set{_ShortDecribesVN = value;} }
		public String LongDecribesVN{	get{ return _LongDecribesVN;} set{_LongDecribesVN = value;} }
		public String Image{	get{ return _Image;} set{_Image = value;} }
		public Int64 CountPreview{	get{ return _CountPreview;} set{_CountPreview = value;} }
		public String Icon{	get{ return _Icon;} set{_Icon = value;} }
		public Int32 Status{	get{ return _Status;} set{_Status = value;} }
		public Double OldPrice{	get{ return _OldPrice;} set{_OldPrice = value;} }
		public Double NewPrice{	get{ return _NewPrice;} set{_NewPrice = value;} }
		public String Warranty{	get{ return _Warranty;} set{_Warranty = value;} }
		public String Promote{	get{ return _Promote;} set{_Promote = value;} }
		public String Weight{	get{ return _Weight;} set{_Weight = value;} }
		public String Dimension{	get{ return _Dimension;} set{_Dimension = value;} }
		public String TypeView{	get{ return _TypeView;} set{_TypeView = value;} }
		public Int32 Quantity{	get{ return _Quantity;} set{_Quantity = value;} }
		public String WarrantyVN{	get{ return _WarrantyVN;} set{_WarrantyVN = value;} }
		public String PromoteVN{	get{ return _PromoteVN;} set{_PromoteVN = value;} }
		public Int32 IDImage{	get{ return _IDImage;} set{_IDImage = value;} }
		public String ANAL_P0{	get{ return _ANAL_P0;} set{_ANAL_P0 = value;} }
		public String ANAL_P1{	get{ return _ANAL_P1;} set{_ANAL_P1 = value;} }
		public String ANAL_P2{	get{ return _ANAL_P2;} set{_ANAL_P2 = value;} }
		public String ANAL_P3{	get{ return _ANAL_P3;} set{_ANAL_P3 = value;} }
		public String ANAL_P4{	get{ return _ANAL_P4;} set{_ANAL_P4 = value;} }
		public String ANAL_P5{	get{ return _ANAL_P5;} set{_ANAL_P5 = value;} }
		public String ANAL_P6{	get{ return _ANAL_P6;} set{_ANAL_P6 = value;} }
		public String ANAL_P7{	get{ return _ANAL_P7;} set{_ANAL_P7 = value;} }
		public String ANAL_P8{	get{ return _ANAL_P8;} set{_ANAL_P8 = value;} }
		public String ANAL_P9{	get{ return _ANAL_P9;} set{_ANAL_P9 = value;} }
		public String BEN_H{	get{ return _BEN_H;} set{_BEN_H = value;} }
		public String BEN_S{	get{ return _BEN_S;} set{_BEN_S = value;} }
		public String BEN_C{	get{ return _BEN_C;} set{_BEN_C = value;} }
		public String BEN_R{	get{ return _BEN_R;} set{_BEN_R = value;} }
		public String BEN_F{	get{ return _BEN_F;} set{_BEN_F = value;} }
		public String Rate{	get{ return _Rate;} set{_Rate = value;} }
		public String Brand{	get{ return _Brand;} set{_Brand = value;} }
		public String Material{	get{ return _Material;} set{_Material = value;} }
		public String Age{	get{ return _Age;} set{_Age = value;} }
		public String Usage{	get{ return _Usage;} set{_Usage = value;} }
		public String Occasion{	get{ return _Occasion;} set{_Occasion = value;} }
		
        #endregion LocalVariable
        
        #region Constructor
		public ProductsInfo()
		{
			_ID = 0;
			_Code = "";
			_Skue = "";
			_IDCategory = 0;
			_Name = "";
			_NameVN = "";
			_ShortDecribes = "";
			_LongDecribes = "";
			_ShortDecribesVN = "";
			_LongDecribesVN = "";
			_Image = "";
			_CountPreview = 0;
			_Icon = "";
			_Status = 0;
			_OldPrice = 0;
			_NewPrice = 0;
			_Warranty = "";
			_Promote = "";
			_Weight = "";
			_Dimension = "";
			_TypeView = "";
			_Quantity = 0;
			_WarrantyVN = "";
			_PromoteVN = "";
			_IDImage = 0;
			_ANAL_P0 = "";
			_ANAL_P1 = "";
			_ANAL_P2 = "";
			_ANAL_P3 = "";
			_ANAL_P4 = "";
			_ANAL_P5 = "";
			_ANAL_P6 = "";
			_ANAL_P7 = "";
			_ANAL_P8 = "";
			_ANAL_P9 = "";
			_BEN_H = "";
			_BEN_S = "";
			_BEN_C = "";
			_BEN_R = "";
			_BEN_F = "";
			_Rate = "";
			_Brand = "";
			_Material = "";
			_Age = "";
			_Usage = "";
			_Occasion = "";
		}
		public ProductsInfo(
		Int64 ID,
		String Code,
		String Skue,
		Int32 IDCategory,
		String Name,
		String NameVN,
		String ShortDecribes,
		String LongDecribes,
		String ShortDecribesVN,
		String LongDecribesVN,
		String Image,
		Int64 CountPreview,
		String Icon,
		Int32 Status,
		Double OldPrice,
		Double NewPrice,
		String Warranty,
		String Promote,
		String Weight,
		String Dimension,
		String TypeView,
		Int32 Quantity,
		String WarrantyVN,
		String PromoteVN,
		Int32 IDImage,
		String ANAL_P0,
		String ANAL_P1,
		String ANAL_P2,
		String ANAL_P3,
		String ANAL_P4,
		String ANAL_P5,
		String ANAL_P6,
		String ANAL_P7,
		String ANAL_P8,
		String ANAL_P9,
		String BEN_H,
		String BEN_S,
		String BEN_C,
		String BEN_R,
		String BEN_F,
		String Rate,
		String Brand,
		String Material,
		String Age,
		String Usage,
		String Occasion
		)
		{
			_ID = ID;
			_Code = Code;
			_Skue = Skue;
			_IDCategory = IDCategory;
			_Name = Name;
			_NameVN = NameVN;
			_ShortDecribes = ShortDecribes;
			_LongDecribes = LongDecribes;
			_ShortDecribesVN = ShortDecribesVN;
			_LongDecribesVN = LongDecribesVN;
			_Image = Image;
			_CountPreview = CountPreview;
			_Icon = Icon;
			_Status = Status;
			_OldPrice = OldPrice;
			_NewPrice = NewPrice;
			_Warranty = Warranty;
			_Promote = Promote;
			_Weight = Weight;
			_Dimension = Dimension;
			_TypeView = TypeView;
			_Quantity = Quantity;
			_WarrantyVN = WarrantyVN;
			_PromoteVN = PromoteVN;
			_IDImage = IDImage;
			_ANAL_P0 = ANAL_P0;
			_ANAL_P1 = ANAL_P1;
			_ANAL_P2 = ANAL_P2;
			_ANAL_P3 = ANAL_P3;
			_ANAL_P4 = ANAL_P4;
			_ANAL_P5 = ANAL_P5;
			_ANAL_P6 = ANAL_P6;
			_ANAL_P7 = ANAL_P7;
			_ANAL_P8 = ANAL_P8;
			_ANAL_P9 = ANAL_P9;
			_BEN_H = BEN_H;
			_BEN_S = BEN_S;
			_BEN_C = BEN_C;
			_BEN_R = BEN_R;
			_BEN_F = BEN_F;
			_Rate = Rate;
			_Brand = Brand;
			_Material = Material;
			_Age = Age;
			_Usage = Usage;
			_Occasion = Occasion;
		}
		public ProductsInfo(DataRow dr)
		{
			if (dr != null)
			{
				_ID = dr[Field.ID.ToString()] == DBNull.Value?0:Convert.ToInt64(dr[Field.ID.ToString()]);
				_Code = dr[Field.Code.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Code.ToString()]);
				_Skue = dr[Field.Skue.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Skue.ToString()]);
				_IDCategory = dr[Field.IDCategory.ToString()] == DBNull.Value?0:Convert.ToInt32(dr[Field.IDCategory.ToString()]);
				_Name = dr[Field.Name.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Name.ToString()]);
				_NameVN = dr[Field.NameVN.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.NameVN.ToString()]);
				_ShortDecribes = dr[Field.ShortDecribes.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.ShortDecribes.ToString()]);
				_LongDecribes = dr[Field.LongDecribes.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.LongDecribes.ToString()]);
				_ShortDecribesVN = dr[Field.ShortDecribesVN.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.ShortDecribesVN.ToString()]);
				_LongDecribesVN = dr[Field.LongDecribesVN.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.LongDecribesVN.ToString()]);
				_Image = dr[Field.Image.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Image.ToString()]);
				_CountPreview = dr[Field.CountPreview.ToString()] == DBNull.Value?0:Convert.ToInt64(dr[Field.CountPreview.ToString()]);
				_Icon = dr[Field.Icon.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Icon.ToString()]);
				_Status = dr[Field.Status.ToString()] == DBNull.Value?0:Convert.ToInt32(dr[Field.Status.ToString()]);
				_OldPrice = dr[Field.OldPrice.ToString()] == DBNull.Value?0:Convert.ToDouble(dr[Field.OldPrice.ToString()]);
				_NewPrice = dr[Field.NewPrice.ToString()] == DBNull.Value?0:Convert.ToDouble(dr[Field.NewPrice.ToString()]);
				_Warranty = dr[Field.Warranty.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Warranty.ToString()]);
				_Promote = dr[Field.Promote.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Promote.ToString()]);
				_Weight = dr[Field.Weight.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Weight.ToString()]);
				_Dimension = dr[Field.Dimension.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Dimension.ToString()]);
				_TypeView = dr[Field.TypeView.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.TypeView.ToString()]);
				_Quantity = dr[Field.Quantity.ToString()] == DBNull.Value?0:Convert.ToInt32(dr[Field.Quantity.ToString()]);
				_WarrantyVN = dr[Field.WarrantyVN.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.WarrantyVN.ToString()]);
				_PromoteVN = dr[Field.PromoteVN.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.PromoteVN.ToString()]);
				_IDImage = dr[Field.IDImage.ToString()] == DBNull.Value?0:Convert.ToInt32(dr[Field.IDImage.ToString()]);
				_ANAL_P0 = dr[Field.ANAL_P0.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.ANAL_P0.ToString()]);
				_ANAL_P1 = dr[Field.ANAL_P1.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.ANAL_P1.ToString()]);
				_ANAL_P2 = dr[Field.ANAL_P2.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.ANAL_P2.ToString()]);
				_ANAL_P3 = dr[Field.ANAL_P3.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.ANAL_P3.ToString()]);
				_ANAL_P4 = dr[Field.ANAL_P4.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.ANAL_P4.ToString()]);
				_ANAL_P5 = dr[Field.ANAL_P5.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.ANAL_P5.ToString()]);
				_ANAL_P6 = dr[Field.ANAL_P6.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.ANAL_P6.ToString()]);
				_ANAL_P7 = dr[Field.ANAL_P7.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.ANAL_P7.ToString()]);
				_ANAL_P8 = dr[Field.ANAL_P8.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.ANAL_P8.ToString()]);
				_ANAL_P9 = dr[Field.ANAL_P9.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.ANAL_P9.ToString()]);
				_BEN_H = dr[Field.BEN_H.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.BEN_H.ToString()]);
				_BEN_S = dr[Field.BEN_S.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.BEN_S.ToString()]);
				_BEN_C = dr[Field.BEN_C.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.BEN_C.ToString()]);
				_BEN_R = dr[Field.BEN_R.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.BEN_R.ToString()]);
				_BEN_F = dr[Field.BEN_F.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.BEN_F.ToString()]);
				_Rate = dr[Field.Rate.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Rate.ToString()]);
				_Brand = dr[Field.Brand.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Brand.ToString()]);
				_Material = dr[Field.Material.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Material.ToString()]);
				_Age = dr[Field.Age.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Age.ToString()]);
				_Usage = dr[Field.Usage.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Usage.ToString()]);
				_Occasion = dr[Field.Occasion.ToString()] == DBNull.Value?"":Convert.ToString(dr[Field.Occasion.ToString()]);
			}
		}
		public ProductsInfo(ProductsInfo objEntr)
		{			
			_ID = objEntr.ID;			
			_Code = objEntr.Code;			
			_Skue = objEntr.Skue;			
			_IDCategory = objEntr.IDCategory;			
			_Name = objEntr.Name;			
			_NameVN = objEntr.NameVN;			
			_ShortDecribes = objEntr.ShortDecribes;			
			_LongDecribes = objEntr.LongDecribes;			
			_ShortDecribesVN = objEntr.ShortDecribesVN;			
			_LongDecribesVN = objEntr.LongDecribesVN;			
			_Image = objEntr.Image;			
			_CountPreview = objEntr.CountPreview;			
			_Icon = objEntr.Icon;			
			_Status = objEntr.Status;			
			_OldPrice = objEntr.OldPrice;			
			_NewPrice = objEntr.NewPrice;			
			_Warranty = objEntr.Warranty;			
			_Promote = objEntr.Promote;			
			_Weight = objEntr.Weight;			
			_Dimension = objEntr.Dimension;			
			_TypeView = objEntr.TypeView;			
			_Quantity = objEntr.Quantity;			
			_WarrantyVN = objEntr.WarrantyVN;			
			_PromoteVN = objEntr.PromoteVN;			
			_IDImage = objEntr.IDImage;			
			_ANAL_P0 = objEntr.ANAL_P0;			
			_ANAL_P1 = objEntr.ANAL_P1;			
			_ANAL_P2 = objEntr.ANAL_P2;			
			_ANAL_P3 = objEntr.ANAL_P3;			
			_ANAL_P4 = objEntr.ANAL_P4;			
			_ANAL_P5 = objEntr.ANAL_P5;			
			_ANAL_P6 = objEntr.ANAL_P6;			
			_ANAL_P7 = objEntr.ANAL_P7;			
			_ANAL_P8 = objEntr.ANAL_P8;			
			_ANAL_P9 = objEntr.ANAL_P9;			
			_BEN_H = objEntr.BEN_H;			
			_BEN_S = objEntr.BEN_S;			
			_BEN_C = objEntr.BEN_C;			
			_BEN_R = objEntr.BEN_R;			
			_BEN_F = objEntr.BEN_F;			
			_Rate = objEntr.Rate;			
			_Brand = objEntr.Brand;			
			_Material = objEntr.Material;			
			_Age = objEntr.Age;			
			_Usage = objEntr.Usage;			
			_Occasion = objEntr.Occasion;			
		}
        #endregion Constructor
        
        #region InitTable
		public static DataTable ToDataTable()
		{
			DataTable dt = new DataTable("Products");
			dt.Columns.AddRange(new DataColumn[] { 
				new DataColumn(Field.ID.ToString(), typeof(Int64)),
				new DataColumn(Field.Code.ToString(), typeof(String)),
				new DataColumn(Field.Skue.ToString(), typeof(String)),
				new DataColumn(Field.IDCategory.ToString(), typeof(Int32)),
				new DataColumn(Field.Name.ToString(), typeof(String)),
				new DataColumn(Field.NameVN.ToString(), typeof(String)),
				new DataColumn(Field.ShortDecribes.ToString(), typeof(String)),
				new DataColumn(Field.LongDecribes.ToString(), typeof(String)),
				new DataColumn(Field.ShortDecribesVN.ToString(), typeof(String)),
				new DataColumn(Field.LongDecribesVN.ToString(), typeof(String)),
				new DataColumn(Field.Image.ToString(), typeof(String)),
				new DataColumn(Field.CountPreview.ToString(), typeof(Int64)),
				new DataColumn(Field.Icon.ToString(), typeof(String)),
				new DataColumn(Field.Status.ToString(), typeof(Int32)),
				new DataColumn(Field.OldPrice.ToString(), typeof(Double)),
				new DataColumn(Field.NewPrice.ToString(), typeof(Double)),
				new DataColumn(Field.Warranty.ToString(), typeof(String)),
				new DataColumn(Field.Promote.ToString(), typeof(String)),
				new DataColumn(Field.Weight.ToString(), typeof(String)),
				new DataColumn(Field.Dimension.ToString(), typeof(String)),
				new DataColumn(Field.TypeView.ToString(), typeof(String)),
				new DataColumn(Field.Quantity.ToString(), typeof(Int32)),
				new DataColumn(Field.WarrantyVN.ToString(), typeof(String)),
				new DataColumn(Field.PromoteVN.ToString(), typeof(String)),
				new DataColumn(Field.IDImage.ToString(), typeof(Int32)),
				new DataColumn(Field.ANAL_P0.ToString(), typeof(String)),
				new DataColumn(Field.ANAL_P1.ToString(), typeof(String)),
				new DataColumn(Field.ANAL_P2.ToString(), typeof(String)),
				new DataColumn(Field.ANAL_P3.ToString(), typeof(String)),
				new DataColumn(Field.ANAL_P4.ToString(), typeof(String)),
				new DataColumn(Field.ANAL_P5.ToString(), typeof(String)),
				new DataColumn(Field.ANAL_P6.ToString(), typeof(String)),
				new DataColumn(Field.ANAL_P7.ToString(), typeof(String)),
				new DataColumn(Field.ANAL_P8.ToString(), typeof(String)),
				new DataColumn(Field.ANAL_P9.ToString(), typeof(String)),
				new DataColumn(Field.BEN_H.ToString(), typeof(String)),
				new DataColumn(Field.BEN_S.ToString(), typeof(String)),
				new DataColumn(Field.BEN_C.ToString(), typeof(String)),
				new DataColumn(Field.BEN_R.ToString(), typeof(String)),
				new DataColumn(Field.BEN_F.ToString(), typeof(String)),
				new DataColumn(Field.Rate.ToString(), typeof(String)),
				new DataColumn(Field.Brand.ToString(), typeof(String)),
				new DataColumn(Field.Material.ToString(), typeof(String)),
				new DataColumn(Field.Age.ToString(), typeof(String)),
				new DataColumn(Field.Usage.ToString(), typeof(String)),
				new DataColumn(Field.Occasion.ToString(), typeof(String))
			});
			return dt;
		}
		public DataRow ToDataRow(DataTable dt)
		{
			DataRow row = dt.NewRow();
			row[Field.ID.ToString()] = _ID;
			row[Field.Code.ToString()] = _Code;
			row[Field.Skue.ToString()] = _Skue;
			row[Field.IDCategory.ToString()] = _IDCategory;
			row[Field.Name.ToString()] = _Name;
			row[Field.NameVN.ToString()] = _NameVN;
			row[Field.ShortDecribes.ToString()] = _ShortDecribes;
			row[Field.LongDecribes.ToString()] = _LongDecribes;
			row[Field.ShortDecribesVN.ToString()] = _ShortDecribesVN;
			row[Field.LongDecribesVN.ToString()] = _LongDecribesVN;
			row[Field.Image.ToString()] = _Image;
			row[Field.CountPreview.ToString()] = _CountPreview;
			row[Field.Icon.ToString()] = _Icon;
			row[Field.Status.ToString()] = _Status;
			row[Field.OldPrice.ToString()] = _OldPrice;
			row[Field.NewPrice.ToString()] = _NewPrice;
			row[Field.Warranty.ToString()] = _Warranty;
			row[Field.Promote.ToString()] = _Promote;
			row[Field.Weight.ToString()] = _Weight;
			row[Field.Dimension.ToString()] = _Dimension;
			row[Field.TypeView.ToString()] = _TypeView;
			row[Field.Quantity.ToString()] = _Quantity;
			row[Field.WarrantyVN.ToString()] = _WarrantyVN;
			row[Field.PromoteVN.ToString()] = _PromoteVN;
			row[Field.IDImage.ToString()] = _IDImage;
			row[Field.ANAL_P0.ToString()] = _ANAL_P0;
			row[Field.ANAL_P1.ToString()] = _ANAL_P1;
			row[Field.ANAL_P2.ToString()] = _ANAL_P2;
			row[Field.ANAL_P3.ToString()] = _ANAL_P3;
			row[Field.ANAL_P4.ToString()] = _ANAL_P4;
			row[Field.ANAL_P5.ToString()] = _ANAL_P5;
			row[Field.ANAL_P6.ToString()] = _ANAL_P6;
			row[Field.ANAL_P7.ToString()] = _ANAL_P7;
			row[Field.ANAL_P8.ToString()] = _ANAL_P8;
			row[Field.ANAL_P9.ToString()] = _ANAL_P9;
			row[Field.BEN_H.ToString()] = _BEN_H;
			row[Field.BEN_S.ToString()] = _BEN_S;
			row[Field.BEN_C.ToString()] = _BEN_C;
			row[Field.BEN_R.ToString()] = _BEN_R;
			row[Field.BEN_F.ToString()] = _BEN_F;
			row[Field.Rate.ToString()] = _Rate;
			row[Field.Brand.ToString()] = _Brand;
			row[Field.Material.ToString()] = _Material;
			row[Field.Age.ToString()] = _Age;
			row[Field.Usage.ToString()] = _Usage;
			row[Field.Occasion.ToString()] = _Occasion;
			return row;
		}
        #endregion InitTable
    }
}
